.class Lcom/waiqin365/compons/camera/o;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget v2, v2, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->c:I

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/compons/camera/ad;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/ad;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget v2, v2, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->c:I

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/compons/camera/ad;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/ad;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->e(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020314

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v1}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->h(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)I

    move-result v1

    if-lt v0, v1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u5f88\u62b1\u6b49\uff0c\u60a8\u6700\u591a\u53ea\u53ef\u9009\u62e9"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v2}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->h(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "\u5f20\u56fe\u7247\u3002"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget v2, v2, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->c:I

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/compons/camera/ad;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/ad;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/compons/camera/o;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->e(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020315

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0
.end method
